package com.hxx.day3;

import org.junit.Test;

import java.awt.*;
import java.util.Random;

/**
 * 枚举类型的应用
 */
public class TestDemo {
    @Test
    public void test1(){
    }
}

enum Plane{
    ONE(0,"经济座"),TWO(1,"商务舱"),THREE(2,"头等舱");

    private String message;
    private Integer flag;
    private Plane(int flag1, String msg){
        flag = flag1;
        message = msg;
    }
    public String getMessage(){
        return message;
    }
    public Integer getFlag(){
        return flag;
    }
}


















